<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理页面</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/admin.css">
    <script src="../../custom_js/jquery-3.5.1.min.js"></script>
    <script src="../../custom_js/jquery.cookie.js"></script>
    <script src="../../custom_js/myajax.js"></script>
    <script src="../layui/layui.all.js"></script>
    <script src="../js/admin_display.js"></script>
    <script src="../js/admin.js"></script>
</head>
<body class="layui-layout-body close-footer">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="font-size: 20px">某某医疗后台管理</div>
        <ul class="layui-nav layui-layout-right" style="width: 200px;display: flex;justify-content: space-between">
            <li class="layui-nav-item" style="width:80px;text-align: center">
                <span id="userinfo" style="font-size: 16px"></span>
                <dl class="layui-nav-child">
                    <dd>
                        <button type="button" class="layui-btn" id="updatepassword">修改密码</button>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <button type="button" class="layui-btn layui-btn-danger" id="logout">退出</button>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="admin-nav">
                <li class="layui-nav-item">
                    <a name="admin" class="" href="javascript:;">成员管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">公司信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a name="company" href="javascript:;">公司信息</a></dd>
                        <dd><a name="companyintroduce" href="javascript:;">公司介绍</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">首页信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a name="navigation" href="javascript:;">导航管理</a></dd>
                        <dd><a name="advertisement" href="javascript:;">广告管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">产品管理管理</a>
                    <dl class="layui-nav-child">
                        <dd><a name="productcategory" href="javascript:;">产品类目</a></dd>
                        <dd><a name="product" href="javascript:;">产品</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">新闻管理</a>
                    <dl class="layui-nav-child">
                        <dd><a name="newscategory" href="javascript:;">新闻分类</a></dd>
                        <dd><a name="news" href="javascript:;">新闻信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a name="message" href="javascript:;">留言查看</a></li>
                <li class="layui-nav-item"><a name="deleteAll" href="javascript:;">关闭所有</a></li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="layui-tab layui-tab-brief" lay-filter="content-tab" lay-allowClose="true">
            <ul class="layui-tab-title"></ul>
            <div class="layui-tab-content"></div>
        </div>
    </div>
</div>

<!--  修改密码的表单  update_password_html  -->
<div id="update_password_html" class="layui-form layui-form-pane" hidden>
    <div class="layui-form-item" style="display: flex;align-items: center;justify-content: center;margin-top: 20px">

        <div class="layui-input-inline">
            <input id="password" type="password" name="password" required lay-verify="password" lay-verType="tips"
                   placeholder="请输入新密码" autocomplete="off" class="layui-input"/>
        </div>

    </div>

    <div class="layui-form-item" style="display: flex;align-items: center;justify-content: center">
        <div class="layui-input-inline">
            <input id="newpassword" type="password" name="password" required lay-verify="checkpassword"
                   lay-verType="tips" placeholder="请重复密码" autocomplete="off" class="layui-input"/>
        </div>

    </div>

    <div class="layui-form-item" style="display: flex;align-items: center;justify-content: center">
        <div class="layui-input-block" style="margin: auto">
            <button class="layui-btn" lay-submit lay-filter="updatesubmit">确认修改</button>
        </div>
    </div>
</div>

<!-- 待渲染的html -->
<div hidden>
    <!--  表格头 工具栏 样式    table_options_toolbar_html_ id   -->
    <div id="table_options_toolbar_html_admin">
        <div class="layui-form" lay-filter="toolbar_form_admin">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-filter="admin_insert" lay-submit><i class="layui-icon">&#xe624;</i>新增
                    </button>
                </div>

                <span>用户名:</span>
                <div class="layui-inline">
                    <input type="text" name="username" lay-verify="username" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>角色:</span>
                <div class="layui-inline">
                    <select name="role" lay-verify="required" lay-verType="tips" lay-search>
                        <option value=""></option>
                        <option value="admin">admin</option>
                        <option value="company">company</option>
                        <option value="advertisement">advertisement</option>
                        <option value="aboutus">aboutus</option>
                        <option value="product">product</option>
                        <option value="news">news</option>
                        <option value="message">message</option>
                    </select>
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div id="table_options_toolbar_html_company">
        <div class="layui-form" lay-filter="toolbar_form_company">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-filter="company_insert" lay-submit><i class="layui-icon">&#xe624;</i>新增
                    </button>
                </div>
            </div>
            <div class="layui-form-item">
                <span>公司名:</span>
                <div class="layui-inline">
                    <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>地址:</span>
                <div class="layui-inline">
                    <input type="text" name="address" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>咨询热线:</span>
                <div class="layui-inline">
                    <input type="text" name="consulttel" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>预约热线:</span>
                <div class="layui-inline">
                    <input type="text" name="advancetel" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>传真:</span>
                <div class="layui-inline">
                    <input type="text" name="fax" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>邮箱:</span>
                <div class="layui-inline">
                    <input type="text" name="email" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <span>网址:</span>
                <div class="layui-inline">
                    <input type="text" name="website" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>路线:</span>
                <div class="layui-inline">
                    <input type="text" name="route" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>微博:</span>
                <div class="layui-inline">
                    <input type="text" name="microblog" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>微信公众号:</span>
                <div class="layui-inline">
                    <input type="text" name="wechat" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>
                <span>是否置顶:</span>
                <div class="layui-inline">
                    <select name="istop" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">置顶</option>
                        <option value="2">不置顶</option>
                    </select>
                </div>
                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>


    <!--    弹窗 form insert 型表头-->
    <div id="table_options_toolbar_html_companyintroduce">
        <div class="layui-form" lay-filter="toolbar_form_companyintroduce">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="insert"><i class="layui-icon">&#xe624;</i>新增</button>
                </div>

                <span>标题:</span>
                <div class="layui-inline">
                    <input type="text" name="title" autocomplete="off" class="layui-input">
                </div>

                <span>内容:</span>
                <div class="layui-inline">
                    <input type="text" name="content" autocomplete="off" class="layui-input">
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div id="table_options_toolbar_html_navigation">
        <div class="layui-form" lay-filter="toolbar_form_navigation">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-filter="navigation_insert" lay-submit><i
                            class="layui-icon">&#xe624;</i>新增
                    </button>
                </div>

                <span>栏位:</span>
                <div class="layui-inline">
                    <input type="text" name="serialnumber" lay-verify="onlynumber" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>导航栏目名:</span>
                <div class="layui-inline">
                    <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>跳转地址:</span>
                <div class="layui-inline">
                    <input type="text" name="href" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!--    弹窗 form insert 型表头-->
    <div id="table_options_toolbar_html_advertisement">
        <div class="layui-form" lay-filter="toolbar_form_advertisement">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="insert"><i class="layui-icon">&#xe624;</i>新增</button>
                </div>

                <span>栏位:</span>
                <div class="layui-inline">
                    <input type="text" name="adnum" autocomplete="off" class="layui-input">
                </div>

                <span>内容:</span>
                <div class="layui-inline">
                    <input type="text" name="content" autocomplete="off" class="layui-input">
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div id="table_options_toolbar_html_productcategory">
        <div class="layui-form" lay-filter="toolbar_form_productcategory">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-filter="productcategory_insert" lay-submit><i
                            class="layui-icon">&#xe624;</i>新增
                    </button>
                </div>

                <span>类目名:</span>
                <div class="layui-inline">
                    <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>描述:</span>
                <div class="layui-inline">
                    <input type="text" name="describe" autocomplete="off" class="layui-input">
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!--    弹窗 form insert 型表头-->
    <div id="table_options_toolbar_html_product">
        <div class="layui-form" lay-filter="toolbar_form_product">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="insert"><i class="layui-icon">&#xe624;</i>新增</button>
                </div>

                <span>类目:</span>
                <div class="layui-inline">
                    <input type="text" name="category_name" autocomplete="off" class="layui-input">
                </div>

                <span>产品名字:</span>
                <div class="layui-inline">
                    <input type="text" name="name" autocomplete="off" class="layui-input">
                </div>

                <span>产品简介:</span>
                <div class="layui-inline">
                    <input type="text" name="describe" autocomplete="off" class="layui-input">
                </div>

                <span>是否上架:</span>
                <div class="layui-inline">
                    <select name="onshelf">
                        <option value=""></option>
                        <option value="1">上架</option>
                        <option value="2">下架</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>


    <div id="table_options_toolbar_html_newscategory">
        <div class="layui-form" lay-filter="toolbar_form_newscategory">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-filter="newscategory_insert" lay-submit><i
                            class="layui-icon">&#xe624;</i>新增
                    </button>
                </div>

                <span>类目名:</span>
                <div class="layui-inline">
                    <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                           class="layui-input">
                </div>

                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival" lay-verify="required" lay-verType="tips">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!--    弹窗 form insert 型表头-->
    <div id="table_options_toolbar_html_news">
        <div class="layui-form" lay-filter="toolbar_form_news">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="insert"><i class="layui-icon">&#xe624;</i>新增</button>
                </div>

                <span>所属分类:</span>
                <div class="layui-inline">
                    <input type="text" name="category_name" autocomplete="off" class="layui-input">
                </div>

                <span>新闻标题:</span>
                <div class="layui-inline">
                    <input type="text" name="title" autocomplete="off" class="layui-input">
                </div>

                <span>新闻简介:</span>
                <div class="layui-inline">
                    <input type="text" name="summary" autocomplete="off" class="layui-input">
                </div>
                <span>新闻日期:</span>
                <div class="layui-inline">
                    <input type="text" name="newsdate" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <span>是否可用:</span>
                <div class="layui-inline">
                    <select name="survival">
                        <option value=""></option>
                        <option value="1">可用</option>
                        <option value="2">不可用</option>
                    </select>
                </div>
                <span>是否置顶:</span>
                <div class="layui-inline">
                    <select name="istop">
                        <option value=""></option>
                        <option value="1">置顶</option>
                        <option value="2">不置顶</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-event="select"><i class="layui-icon">&#xe615;</i>查询</button>
                    <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div id="table_options_toolbar_html_message">
        <div class="layui-form" lay-filter="toolbar_form_admin">
            <div class="layui-inline">
                <button class="layui-btn layui-btn-danger" lay-event="reset"><i class="layui-icon">&#xe669;</i>刷新
                </button>
            </div>
        </div>
    </div>

</div>

<!-- ======================================================================================== -->

<!--  表格头 工具栏 新增 弹窗 表单样式   tableToolBar_insert_layerform_html_ id   -->
<!-- ======================================================================================== -->
<form id="tableToolBar_insert_layerform_html_companyintroduce" class="layui-form layui-form-pane"
      lay-filter="layer_form_companyintroduce" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">标题:</label>
        <div class="layui-inline">
            <input type="text" name="title" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <input type="file" accept="image/*" id="upload-img-companyintroduce" onchange="changepic_companyintroduce(this)"
               name="file"
               hidden>
        <div class="layui-inline">
            <button type="button" class="layui-btn" onclick="$('#upload-img-companyintroduce').click()">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>
            <div class="layui-inline" style="width: 220px;height: 70px;border: 1px rgba(0,0,0,0.1) solid">
                <img style="width: 220px;height: 70px" id="preview-companyintroduce">
            </div>
            <span style="color: rgba(0,0,0,0.3)">(建议大小 1100x350)</span>
        </div>
        <script>
            function changepic_companyintroduce(obj) {
                imgchooseflag_companyintroduce = true;
                var newsrc = getObjectURL(obj.files[0]);
                document.getElementById('preview-companyintroduce').src = newsrc;
            }
        </script>
    </div>
    <label class="layui-form-label">内容:</label>
    <div class="layui-form-item">
        <div class="layui-inline">
            <textarea id="content-companyintroduce" style="display: none;"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否启用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">启用</option>
                <option value="2">停用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:70px;float: right">
            <button class="layui-btn" lay-filter="submit_companyintroduce" lay-submit>
                <i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="tableToolBar_insert_layerform_html_advertisement" class="layui-form layui-form-pane"
      lay-filter="layer_form_advertisement" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">栏位:</label>
        <div class="layui-inline">
            <input type="text" name="adnum" lay-verify="onlynumber" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div id="img-input-advertisement"></div>
        <div class="layui-inline">
            <button type="button" class="layui-btn" onclick="multiple_upload_img_advertisement()">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>
        </div>
        <div id="img-insert-show-advertisement" style="border: 1px rgba(0,0,0,0.1) solid">
        </div>
        <div id="img-update-show-advertisement" style="border: 1px rgba(0,0,0,0.1) solid">
        </div>
        <span style="color: rgba(0,0,0,0.3)">(双击图片删除)</span>
        <script>
            var input_num_advertisement = 0;

            function multiple_upload_img_advertisement() {
                if ($("#img-input-advertisement").children().length == $("#img-insert-show-advertisement").children().length) {
                    var img_file_input_html_advertisement = '<input type="file" accept="image/*" name="' + input_num_advertisement + '" onchange="changepic_advertisement(this)" hidden>';
                    $("#img-input-advertisement").append(img_file_input_html_advertisement);
                }
                $("#img-input-advertisement>input[name=" + input_num_advertisement + "]").click();
            }

            function changepic_advertisement(obj) {
                var img_html = '<img index="' + input_num_advertisement + '" style="width: 120px;height: 90px;margin: 2px" ondblclick="delete_img_advertisement(this)" src="' + getObjectURL(obj.files[0]) + '" >';
                $("#img-insert-show-advertisement").append(img_html);
                input_num_advertisement++;

            }

            function delete_img_advertisement(obj) {
                $("#img-input-advertisement>input[name=" + $(obj).attr("index") + "]").remove();
                obj.remove();
            }
        </script>
    </div>
    <label class="layui-form-label">内容:</label>
    <div class="layui-form-item">
        <div class="layui-inline">
            <textarea id="content-advertisement" style="display: none;"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否启用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">启用</option>
                <option value="2">停用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:70px;float: right">
            <button class="layui-btn" lay-filter="submit_advertisement" lay-submit>
                <i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="tableToolBar_insert_layerform_html_product" class="layui-form layui-form-pane"
      lay-filter="layer_form_product" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">类目:</label>
        <div class="layui-inline">
            <select name="category_id" lay-verify="required" lay-verType="tips" lay-search></select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">产品名字:</label>
        <div class="layui-inline">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <input type="file" accept="image/*" id="upload-img-product" onchange="changepic_product(this)"
               name="file"
               hidden>
        <div class="layui-inline">
            <button type="button" class="layui-btn" onclick="$('#upload-img-product').click()">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>
            <div class="layui-inline" style="width: 110px;height: 100px;border: 1px rgba(0,0,0,0.1) solid">
                <img style="width: 110px;height: 100px" id="preview-product">
            </div>
            <span style="color: rgba(0,0,0,0.3)">(建议大小 560x530)</span>
        </div>
        <script>
            function changepic_product(obj) {
                imgchooseflag_product = true;
                var newsrc = getObjectURL(obj.files[0]);
                document.getElementById('preview-product').src = newsrc;
            }
        </script>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">产品简介:</label>
        <div class="layui-inline">
            <input type="text" name="describe" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否上架:</label>
        <div class="layui-inline">
            <select name="onshelf">
                <option value="1">上架</option>
                <option value="2">下架</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:70px;float: right">
            <button class="layui-btn" lay-filter="submit_product" lay-submit>
                <i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="tableToolBar_insert_layerform_html_news" class="layui-form layui-form-pane"
      lay-filter="layer_form_news" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">所属分类:</label>
        <div class="layui-inline">
            <select name="category_id" lay-verify="required" lay-verType="tips" lay-search></select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新闻标题:</label>
        <div class="layui-inline">
            <input type="text" name="title" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">新闻概要:</label>
        <div class="layui-inline">
            <input type="text" name="summary" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新闻日期:</label>
        <div class="layui-inline">
            <input type="text" id="news-date" name="newsdate" lay-verify="required|date" lay-verType="tips"
                   autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否可用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">可用</option>
                <option value="2">不可用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否置顶:</label>
        <div class="layui-inline">
            <select name="istop">
                <option value="1">置顶</option>
                <option value="2">不置顶</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:70px;float: right">
            <button class="layui-btn" lay-filter="submit_news" lay-submit>
                <i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<!-- ======================================================================================== -->

<!--  表格行 工具栏 修改 弹窗 表单样式   rowToolBar_update_layerform_html_ id   -->
<form id="rowToolBar_update_layerform_html_admin" class="layui-form layui-form-pane" lay-filter="admin_updateform"
      hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">用户名:</label>
        <div class="layui-inline">
            <input type="text" name="username" readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色:</label>
        <div class="layui-inline">
            <select name="role" lay-search>
                <option value="admin">admin</option>
                <option value="company">company</option>
                <option value="advertisement">advertisement</option>
                <option value="aboutus">aboutus</option>
                <option value="product">product</option>
                <option value="news">news</option>
                <option value="message">message</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否可用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">可用</option>
                <option value="2">不可用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:140px;float: right">
            <button class="layui-btn" lay-filter="admin_update" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="rowToolBar_update_layerform_html_company" class="layui-form layui-form-pane" lay-filter="company_updateform"
      hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">公司名:</label>
        <div class="layui-inline">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">地址:</label>
        <div class="layui-inline">
            <input type="text" name="address" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">咨询热线:</label>
        <div class="layui-inline">
            <input type="text" name="consulttel" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">预约热线:</label>
        <div class="layui-inline">
            <input type="text" name="advancetel" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">传真:</label>
        <div class="layui-inline">
            <input type="text" name="fax" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱:</label>
        <div class="layui-inline">
            <input type="text" name="email" lay-verify="email" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">网址:</label>
        <div class="layui-inline">
            <input type="text" name="website" lay-verify="url" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">路线:</label>
        <div class="layui-inline">
            <input type="text" name="route" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">微博:</label>
        <div class="layui-inline">
            <input type="text" name="microblog" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">微信公众号:</label>
        <div class="layui-inline">
            <input type="text" name="wechat" lay-verify="required" lay-verType="tips" placeholder="公司名"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否置顶:</label>
        <div class="layui-inline">
            <select name="istop">
                <option value="1">置顶</option>
                <option value="2">不置顶</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否可用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">可用</option>
                <option value="2">不可用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:40px;float: right">
            <button class="layui-btn" lay-filter="company_update" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="rowToolBar_update_layerform_html_navigation" class="layui-form layui-form-pane"
      lay-filter="navigation_updateform" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">栏位:</label>
        <div class="layui-inline">
            <input type="text" name="serialnumber" lay-verify="onlynumber" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">导航栏目名:</label>
        <div class="layui-inline">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">跳转地址:</label>
        <div class="layui-inline">
            <input type="text" name="href" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否启用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">启用</option>
                <option value="2">停用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:80px;float: right">
            <button class="layui-btn" lay-filter="navigation_update" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="rowToolBar_update_layerform_html_productcategory" class="layui-form layui-form-pane"
      lay-filter="productcategory_updateform" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">类目:</label>
        <div class="layui-inline">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">描述:</label>
        <div class="layui-inline">
            <input type="text" name="describe" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否可用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">可用</option>
                <option value="2">不可用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:80px;float: right">
            <button class="layui-btn" lay-filter="productcategory_update" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<!--  表格行 工具栏 修改 弹窗 表单样式   rowToolBar_update_layerform_html_ id   -->
<form id="rowToolBar_update_layerform_html_productinfo" class="layui-form layui-form-pane"
      lay-filter="productinfo_updateform"
      hidden>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">价格:</label>
            <div class="layui-input-block">
                <input type="text" name="price" lay-verify="price" lay-verType="tips" class="layui-input">
            </div>
        </div>
        <span class="layui-inline">元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <div class="layui-inline">
            <label class="layui-form-label">市场价格:</label>
            <div class="layui-input-block">
                <input type="text" name="listprice" lay-verify="price" lay-verType="tips" class="layui-input">
            </div>
        </div>
        <span class="layui-inline">元</span>
    </div>


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">产品说明:</label>
            <div class="layui-input-block">
                <textarea id="product-info-description" style="display: none;"></textarea>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">递送信息:</label>
            <div class="layui-input-block">
                <textarea id="product-info-sendinfo" style="display: none;"></textarea>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">质量认证信息:</label>
            <div class="layui-input-block">
                <textarea id="product-info-cqcinfo" style="display: none;"></textarea>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">包装信息:</label>
            <div class="layui-input-block">
                <textarea id="product-info-packageinfo" style="display: none;"></textarea>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">付款方式:</label>
            <div class="layui-input-block">
                <select name="payment" lay-verify="required" lay-verType="tips">
                    <option value=""></option>
                    <option value="1">协商决定</option>
                    <option value="2">货到付款</option>
                    <option value="3">银行转账</option>
                    <option value="4">移动支付</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否可用:</label>
            <div class="layui-input-block">
                <select name="survival" lay-verify="required" lay-verType="tips">
                    <option value=""></option>
                    <option value="1">可用</option>
                    <option value="2">不可用</option>
                </select>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:140px;float: right">
            <button class="layui-btn" lay-filter="product_info" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<form id="rowToolBar_update_layerform_html_newscategory" class="layui-form layui-form-pane"
      lay-filter="newscategory_updateform" hidden>
    <div class="layui-form-item">
        <label class="layui-form-label">类目:</label>
        <div class="layui-inline">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否可用:</label>
        <div class="layui-inline">
            <select name="survival">
                <option value="1">可用</option>
                <option value="2">不可用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:80px;float: right">
            <button class="layui-btn" lay-filter="newscategory_update" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>


<!--  表格行 工具栏 修改 弹窗 表单样式   rowToolBar_update_layerform_html_ id   -->
<form id="rowToolBar_update_layerform_html_newsinfo" class="layui-form layui-form-pane"
      lay-filter="newsinfo_updateform"
      hidden>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">来源:</label>
            <div class="layui-input-block">
                <input type="text" name="source" lay-verify="required" lay-verType="tips" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">作者:</label>
            <div class="layui-input-block">
                <input type="text" name="author" lay-verify="required" lay-verType="tips" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">点击数:</label>
            <div class="layui-input-block">
                <input type="text" name="numviews" lay-verify="onlynumber" lay-verType="tips" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否可用:</label>
            <div class="layui-input-block">
                <select name="survival" lay-verify="required" lay-verType="tips">
                    <option value=""></option>
                    <option value="1">可用</option>
                    <option value="2">不可用</option>
                </select>
            </div>
        </div>
    </div>
    <label class="layui-form-label">正文内容:</label>
    <div class="layui-form-item">
        <div class="layui-inline">
            <textarea id="news-info-content" style="display: none;"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top:20px;float: right">
            <button class="layui-btn" lay-filter="news_info" lay-submit><i class="layui-icon">&#xe609;</i>提交
            </button>
        </div>
    </div>
</form>

<!-- ======================================================================================== -->

</body>
</html>